package ExerciseTwo;

//机器人类

public class Robot {
	//成员变量
	
	private String name;
	
	private int number;
	
	private String adrs;
	
	private String sound;
	
	//构造方法
	public Robot(String name,int number,String adrs,String sound)
	{
		this.name = name;
		this.number = number;
		this.adrs = adrs;
		this.sound = sound;
	}
	
	//成员方法
	public void show()
	{
		System.out.println("机器人可以唱歌");
		System.out.println("机器人可以进行问答");
		System.out.println("机器人代替人类做很多东西");
		System.out.println("机器人会跳舞");
	}
}
